//
//  MutiChooseCollectionView.h
//  Select
//
//  Created by dihuijun on 17/3/20.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void(^chooseBlock)(NSString *content,NSMutableArray *chooseArray);

@interface MutiChooseCollectionView : UIView<UICollectionViewDelegate,UICollectionViewDataSource>
/**   datasource   */
@property (nonatomic, strong) NSMutableArray *datasource;
/**   collectionView   */
@property (nonatomic, strong) UICollectionView *collectionView;
/**   选择的数组   */
@property (nonatomic, strong) NSMutableArray *chooseArray;
/**   是否全部选中   */
@property (nonatomic, assign) BOOL isAllSelected;
/*    判断点击全选选中**/
@property (nonatomic, assign) BOOL isAllSelectedSwitch;


/**   block   */
@property (nonatomic,copy) chooseBlock block;






/**  有header*/
+ (MutiChooseCollectionView *)shareCollectionViewWithFrame:(CGRect)frame HeaderTitle:(NSString *)title;

/** 刷新collectionView*/
- (void)reloadData;
@end
